//
//  comm.swift
//  iKinds
//
//  Created by kinds on 2016/11/14.
//  Copyright © 2016年 Razeware LLC. All rights reserved.
//

import Foundation

func getDocumentsDirectory()->URL{
	let urls = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
	return urls[0]
}

func standardDateFor(date:Date)->String{
	let f = DateFormatter()
	f.calendar = Calendar.current
	//f.timeZone = TimeZone(abbreviation: "GMT+8")
	f.timeZone = TimeZone.current
	f.dateFormat = "yyyy-MM-dd HH:mm:ss"
	return f.string(from: date)
}
